<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // let arr = [1, 2, 3, 4, 5]
        let arr = {
            0:"abc",
            1:"def",
            2:"向三",
            length:3
        }
        // let arr2 = Array.from(arr)
        // console.log(arr2)

        function fn(arr) {
            let arr1 = Array.from(arr);
            return arr1;
        }
        let arr1 = fn(arr);
        console.log(arr1)
        
        
    </script>
</body>

</html>